const { cloneDeep } = require("lodash");
exports.getParamsFromData = (data, ...unless) => {
  const params = { ...data };
  if (unless && unless.length) {
    unless.forEach((unlessKey) => {
      delete params[unlessKey];
    });
  }
  return params;
};
